package cc.mrbird.assets.service;

import cc.mrbird.assets.domain.AssetType;
import cc.mrbird.assets.domain.Manufacturers;
import cc.mrbird.common.domain.QueryRequest;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;

import java.util.List;

@CacheConfig(cacheNames = "ManufacturersService")
public interface ManufacturersService {
    List<Manufacturers> findAllList(Manufacturers manufacturers, QueryRequest request);

    @CacheEvict(allEntries = true)
    void add(Manufacturers manufacturers);

    Manufacturers findByName(String manufacturers_name);
}
